package com.ocp.socket.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author : lichong
 * @description : 极光推送配置类
 * @Date Create in 20:24 2019/5/5
 * @Modified By :
 **/
@Component
public class JPushConfig {
    public static String APP_KEY;

    public static String MASTER_SECRET;

    public static boolean APNS_PRODUCTION;

    @Value("${appKey}")
    public void setAppKey(String appKey) {
        APP_KEY = appKey;
    }

    @Value("${masterSecret}")
    public void setMasterSecret(String masterSecret) {
        MASTER_SECRET = masterSecret;
    }

    @Value("${apnsProduction}")
    public void setApnsProduction(boolean apnsProduction) {
        APNS_PRODUCTION = apnsProduction;
    }
}
